<script>
import { defineComponent, getCurrentInstance } from "vue";

export default defineComponent({
  props: {
    that: Object,
  },
  setup(props) {
    return { that: props.that };
  },
  render() {
    let that = this.that;
    return (
      <a-collapse bordered={false}>
        <a-collapse-panel header="容器规则">
          <div class="styleValue">
            <span>模式</span>
            <a-radio-group
              value={this.$store.state.aimAttrs.position}
              onChange={(e) => {
                this.$store.commit("aimAttrsChange", {
                  newValue: e,
                  attrsName: "position",
                  that,
                });
              }}
            >
              <a-radio-button value="absolute">自由</a-radio-button>
              <a-radio-button value="fixed">固定</a-radio-button>
            </a-radio-group>
          </div>
        </a-collapse-panel>
      </a-collapse>
    );
  },
});
</script>
